package org.example.implaoptwoway.extendAbstratAdvisor;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class OrderDaoAdvice implements MethodInterceptor
{

    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable
    {

        System.out.println("环绕增强前********");

        //执行被代理对象中的逻辑
        Object result = methodInvocation.proceed();

       System.out.println("环绕增强后********");

        return result;
    }
}
